import bcrypt import webbrowser passw=input("Enter password:") try: encryp=bcrypt.hashpw(passw,bcrypt.gensalt()) print(encryp) if bcrypt.checkpw("12345678",encryp): print("matched") else: print("invalid") except Exception as e: print(e) url="https://stackoverflow.com/search?q="+str(e) webbrowser.open_new_tab(url)